﻿using MyDAL.helper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class for3Yfrom : System.Web.UI.Page
    {
        private int tr;
        private int tc;
        protected void Page_Load(object sender, EventArgs e)
        {
            string[] rc = Request.QueryString["CommandArgument"].Split(',');
            tr = Convert.ToInt32(rc[0]);//获得传递的参数
            tc = Convert.ToInt32(rc[1]);
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Response.Write("<script>window.opener=null;window.close();</script>");
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            DataHelper.GetInstance().JobList[tr].JobTProcessEnabled[tc] = true;
            DataHelper.GetInstance().refrashJobList();
        }
    }
}